import java.text.SimpleDateFormat;
import java.util.Date;

import org.junit.Test;



public class IDGenerator {
 
	@Test
	public void testId() {
		Date date = new Date();
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
		System.out.println(dateFormat.format(date));//14
		System.out.println(System.currentTimeMillis());//13
		String id = dateFormat.format(date) + System.currentTimeMillis()
				+ (int) (Math.random() * 1000);
		System.out.println(id);
	}
}
